import {DragSource} from "./DragSource";

/**
 * 可拖放目标物体
 */
export interface DropTarget {

    checkBound(pos: cc.Vec2): boolean;

    // 当有dragSource 落在其上时触发.
    onDrop(source: DragSource);

    // 移出目标区域时.
    onLeave(source: DragSource);

    // 当有dragSource经过其上时触发.
    onHover(source: DragSource);
}
